<?
$pageBGCSSClass = 'pageBackground';
include('includes/appInit.php');
include('includes/header.php');
$library = new Library();
?>
	<!-- Home page photo and text blurb -->
	<div id="homePhoto">
		<div id="homePhotoTextContainer">
			<h4>
			To help parents of children with disabilities feel competent in addressing day to day issues in their child's life through information, training and referrals.
			</h4>
		</div>
	</div>	
	<!-- End home page photo and text blurb -->	
	<div id="greenBar"></div>		
	<div id="homeContentCenter">
		<div style="float: left; width: 266px;" class="flex">
			<div id="headingResources" style="width: 266px;">
				<a href="" title="<?=$translate->_('Find Local Resources'); ?>" class="homePageHeading headingResources"><? echo $translate->_('Find Local Resources'); ?></a>
			</div>						
		
			<p style="padding: 10px 0 0 30px; width: 200px;">
			Search for service providers and other resources in your area. Enter
			your zip code and/or age of child below to get started.<br /><br />
			</p>
			<form action="resourceSearch.php?search=1" method="POST">
				<label class="bigLabel" for="zip"><? echo $translate->_('Zip Code'); ?></label>
				<input class="inline" type="text" style="width: 125px;" id="zip" name="zip" />
				<br style="clear: left;">
				
				<label class="bigLabel" for="age"><? echo $translate->_('Age of Child'); ?></label>
				<select id="ageYear" name="ageYear" style="width: 60px;">
				<option><? echo $translate->_('Years'); ?></option>
				<?
				for($a=0;$a<=21;$a++) {
					echo '<option value="'.$a.'">'.$a.'</option>';
				}
				?>
				</select>
				<select id="ageMonth" name="ageMonth" style="width: 68px;">
				<option><? echo $translate->_('Months'); ?></option>
				<?
				for($a=1;$a<=12;$a++) {
					echo '<option value="'.$a.'">'.$a.'</option>';
				}
				?>
				</select>
				<br style="clear: left;">
				
				<label></label>
				<input type="submit" value="<? echo $translate->_('Search'); ?>" class="buttonSearch" title="<? echo $translate->_('Search'); ?>" />
				<br style="clear: left;">
			</form>			
		</div>
		<div class="vertLine1" style="margin-top: 31px; float: left;"></div>
					
		<div style="float: left; width: 266px;" class="flex">
			<div id="headingLibrary" style="width: 266px;">
				<a href="libraryView.php" class="homePageHeading headingLibrary" title="<?=$translate->_('Search the Lending Library'); ?>"><? echo $translate->_('Search the Lending Library'); ?></a>
			</div>
		
			<p style="padding: 10px 0 0 30px; width: 200px;">
			Search over 1,700 titles contained in 6 libraries across Oregon. 
			</p>
			<form style="margin-left: 20px; margin-top: 5px;" action="librarySearch.php?search=1" method="POST">
				<input type="text" style="font-weight: bold; width: 215px; id="searchText" name="searchText" value="<? echo $translate->_('Enter Title or Keyword'); ?>" onFocus="this.value='';" /><br />
				<input style="margin-top: 5px;" type="submit" value="<? echo $translate->_('Search'); ?>" class="buttonSearch" title="<? echo $translate->_('Search'); ?>" />			
			</form>
			<p style="margin: 20px 0 0 20px;"><a href="libraryView.php?viewBy=category" class="arrowLinkOrange bigLink"><? echo $translate->_('Browse by category'); ?></a></p>
			
		</div>
		<div class="vertLine1" style="margin-top: 31px; float: left;"></div>
			
		<div style="float: left; width: 266px;" class="flex">
			<div id="headingCalendar" style="width: 266px;">
				<a href="events.php" class="homePageHeading headingCalendar" title="<?=$translate->_('Conferences and Events'); ?>"><? echo $translate->_('Conferences and Events'); ?></a>
			</div>
		
			<div style="padding: 20px 0 0 40px;">
			<?
			$events = new Events();
			$events->getEventList(date('Y-m-d'),null,'window',null,3);
			echo $events->renderEventHTML();
			?>
			<p style="margin-top: 20px;"><a href="events.php" class="arrowLinkOrange bigLink"><? echo $translate->_('View all events'); ?></a></p>
			</div>
		</div>
		<div style="clear: left;"></div>
	</div>
<?
include('includes/footer.php');
?>